﻿#ifndef VIEW_H
#define VIEW_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QSqlError>     //数据库错误信息
#include <QDebug>
#include <QPainter>

namespace Ui {
class View;
}

class View : public QWidget
{
    Q_OBJECT
    
public:
    explicit View(QWidget *parent = 0);
    ~View();

private:
    void paintEvent(QPaintEvent *event);

signals:
    void selectRow(int shang, int xia, int dong);
    
private:
    Ui::View *ui;
    QSqlDatabase db;
};

#endif // VIEW_H
